<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //一般有默认值的参数放后面
        function add(a,b,c=10){
            return a+b+c
        }

        let result = add(1,2)
        console.log(result)


    </script>
</body>
</html>